package com.zuxia.service;

import java.util.List;

import com.zuxia.entity.Admin;

/**
 *缁狅紕鎮婇崨妯圭瑹閸斺�崇湴閹恒儱褰�
 */
public interface IAdminService {

	/**
	 * 閻ц缍�
	 * @param name
	 * @param pwd
	 * @return
	 */
	List<Admin> login(String name,String pwd);
	
	/**
	 * 閺屻儴顕楅崗銊╁劥
	 * @return
	 */
	List<Admin> selectAll();
	
	/**
	 * 閺嶈宓両D閺屻儴顕�
	 * @param id
	 * @return
	 */
	Admin selectId(int id);
	
	/**
	 * 閺嶈宓両D閸掔娀娅�
	 * @param id
	 * @return
	 */
	boolean deleteAdmin(Admin admin);
	
	/**
	 * 濞ｈ濮炵粻锛勬倞閸涳拷
	 * @param admin
	 * @return
	 */
	boolean saveAdmin(Admin admin);
	
	String updateAdmin(Admin admin);
}
